from django.db import models
from employee.models import Employee

class LunchAppointment(models.Model):
    create_date = models.DateTimeField(auto_now = True)
    appointment_datetime = models.DateTimeField(auto_now = False)
    location = models.CharField(max_length=200)
    status = models.IntegerField(default=0)    
    attendee1 = models.ForeignKey(Employee, related_name='employee_attendee1')
    attendee2 = models.ForeignKey(Employee, related_name='employee_attendee2')
    creator = models.ForeignKey(Employee, related_name='employee_creator')
    
class ProjectTeam(models.Model):
    manager = models.ForeignKey(Employee)
    
class EmployeeProjectTeam(models.Model):
    team_id = models.ForeignKey(ProjectTeam)
    employee_id = models.ForeignKey(Employee)
